home *** CD-ROM | disk | FTP | other *** search
- /* GetMyHelpProc.c */
-
- #include "GetMyHelpProc.h"
- #include "TE32K.h"
- #include "Globals.h"
- #ifndef __C14__
- #include "C14 Calculator.h"
- #endif
-
- void GetMyHelpSeg(void) {}
-
- void GetMyHelpList( ListHandle helpList )
- {
- Handle helpHandle;
- short h,v;
- short j;
-
- helpCell.h = 0;
- helpCell.v = 0;
- j=0;
- LAddRow (helpCount-1, 1, helpList);
- helpHandle = (Handle) -1; /* assign non-null for loop */
- for (j=0; j<helpCount; j++) /* helpCount defined in MyHeaders.h */
- {
- helpHandle = GetResource ('TEXT', 1000+j);
- HLock (helpHandle);
- if (helpHandle)
- {
- if ( (SizeResource(helpHandle)) > 32)
- LSetCell (*helpHandle, 31, helpCell, helpList);
- else
- LClrCell (helpCell, helpList);
- helpCell.v++;
- }
- HUnlock (helpHandle);
- ReleaseResource (helpHandle);
- }
- helpHandle = GetResource('TEXT', 1000); /* get "How to Use Help" TEXT */
- HLock (helpHandle);
- helpLong = SizeResource(helpHandle); /* get TEXT size */
- TESetText (*helpHandle+32, helpLong-32, windTbl[1].windTEH[0]);
- TECalText (windTbl[1].windTEH[0]);
- helpCell.v = 0;
- helpPrev = 0;
- LSetSelect (TRUE, helpCell, helpList);
- HUnlock (helpHandle);
- ReleaseResource (helpHandle);
-
- InvalRect (&windTbl[1].windRec.port.portRect); /* request redraw */
-
- }